<template>
    <div>
        <li v-for="(item,index) in typeList" :key="index"><a @click="handleClick(item.id)">{{item.title}}</a></li>
    </div>
</template>

<script>
export default {
    data () {
        return {
            typeList:[
                {'title':'行业资讯','id':1},
                {'title':'公司新闻','id':2},
            ]
        }
    },
    methods: {
        handleClick(i){
            this.$router.push({path:'/about',query:{id:i}});
        }
    }
}
</script>